# Create your views here.
from django.conf import settings
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from article.models import *

def sample_view(request, **kw):
    context = RequestContext(request, kw)
    return render_to_response("home.html", context)

def category_view(request, id):
    return render_to_response('category_view.html', RequestContext(request, {'category':Category.objects.get(pk=id)}))